<?php
wfLoadSkin( 'Gamux' );

require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
wfLoadExtension( 'WikiEditor' );

$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
$wgShowExceptionDetails = true;

//$wgDefaultUserOptions['usebetatoolbar'] = 1;
//$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
//$wgDefaultUserOptions['wikieditor-preview'] = 1;

$wgAllowExternalImages = true;
//$wgUseSharedUploads = true;
//$wgSharedUploadPath = true;
//$wgSharedUploadDBname = true;
$wgAllowImageTag = true;

require_once "$IP/extensions/WYSIWYG/WYSIWYG.php";
$wgGroupPermissions['*']['wysiwyg']=true; // for all users
#$wgGroupPermissions['registered_users']['wysiwyg']=true; // or only for registered users

//请将以上代码添加到新装的mediawiki的LocalSettings.php里